package com.yunshang.shoppingmall.service.impl;

import com.yunshang.shoppingmall.entity.PrivilegeURL;
import com.yunshang.shoppingmall.mapper.PrivilegeURLMapper;
import com.yunshang.shoppingmall.service.PrivilegeURLService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("privilegeURLService")
public class PrivilegeURLServiceImpl implements PrivilegeURLService {
    @Autowired
    PrivilegeURLMapper privilegeURLMapper;

    @Override
    public int deleteByPrimaryKey(Integer prId) {
        return privilegeURLMapper.deleteByPrimaryKey(prId);
    }

    @Override
    public int insert(PrivilegeURL record) {
        return privilegeURLMapper.insert(record);
    }

    @Override
    public int insertSelective(PrivilegeURL record) {
        return privilegeURLMapper.insertSelective(record);
    }

    @Override
    public PrivilegeURL selectByPrimaryKey(Integer prId) {
        return privilegeURLMapper.selectByPrimaryKey(prId);
    }

    @Override
    public int updateByPrimaryKeySelective(PrivilegeURL record) {
        return privilegeURLMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PrivilegeURL record) {
        return privilegeURLMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<PrivilegeURL> selectPriURLList() {
        return privilegeURLMapper.selectPriURLList();
    }

    @Override
    public List<PrivilegeURL> selectPriURL(PrivilegeURL privilegeURL) {
        return privilegeURLMapper.selectPriURL(privilegeURL);
    }
}
